projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9c7552
)
Add flag to waypoint to let the writer know thta we made up a waypoint name.
author
robertl
<robertl>
Wed, 2 Feb 2005 18:06:40 +0000
(18:06 +0000)
committer
robertl
<robertl>
Wed, 2 Feb 2005 18:06:40 +0000
(18:06 +0000)
defs.h
patch
|
blob
|
history
route.c
patch
|
blob
|
history
diff --git
a/defs.h
b/defs.h
index 7d8e89afc407516e7886cca01ec9492773448261..f4d520907b07630e9a36cb7d05b31f2c6a71f4a0 100644
(file)
--- a/
defs.h
+++ b/
defs.h
@@
-196,6
+196,7
@@
typedef struct {
char *url;
char *url_link_text;
int icon_descr_is_dynamic;
+ int shortname_is_synthetic;
const char *icon_descr;
time_t creation_time; /* standardized in UTC/GMT */
int centiseconds; /* Optional hundredths of a second. */
diff --git
a/route.c
b/route.c
index 4f3b8242801460673a06adb12c5653ab8238cd21..b06ce2bb813f0f1d975abcf88b787a19ddce3c02 100644
(file)
--- a/
route.c
+++ b/
route.c
@@
-104,6
+104,7
@@
route_add_wpt(route_head *rte, waypoint *wpt)
char tmpnam[10];
snprintf(tmpnam, sizeof(tmpnam), "RPT%03d",rte_waypts);
wpt->shortname = xstrdup(tmpnam);
+ wpt->shortname_is_synthetic = 1;
}
}